﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DVSProject.Models.LocationSetModels>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    List Location
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>List Location</h2>
    <div class="CSSTableGenerator">
    <table>
        <tr>
            <th>
            </th>
            <th>
                ID
            </th>
            <th>
                Code
            </th>
            <%--   <th>
                MerchantId
            </th>--%>
            <th>
                Location Th
            </th>
            <th>
                Location En
            </th>
            <th>
                Merchant
            </th>
           <%-- <th>
                Status
            </th>
            <th>
                Create By
            </th>
            <th>
                Create On
            </th>
            <th>
                Update By
            </th>
            <th>
                UpdateOn
            </th>--%>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id= item .LocSetId/* id=item.PrimaryKey */ }) %>
                |
                <%= Html.ActionLink("Details", "Details", new { id = item.LocSetId /* id=item.PrimaryKey */ })%>
                |
                <%= Html.ActionLink("Delete", "Delete", new { id = item.LocSetId/* id=item.PrimaryKey */ })%>
            </td>
           <%-- <td>
                <%= Html.Encode(item.LocSetId) %>
            </td>--%>
             <td>
                <%= Html.Encode(item.RowCount) %>
            </td>
            <td>
                <%= Html.Encode(item.LocationSetCode) %>
            </td>
            <%--   <td>
                <%= Html.Encode(item.MerchantId) %>
            </td>--%>
            <td>
                <%= Html.Encode(item.LocSetNameTh) %>
            </td>
            <td>
                <%= Html.Encode(item.LocSetNameEng) %>
            </td>
            <td>
                <%= Html.Encode(item.Merchant_NameEn) %>
            </td>
           <%-- <td>
                <%= Html.Encode(item.Status) %>
            </td>
            <td>
                <%= Html.Encode(item.CreateBy) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.CreateOn)) %>
            </td>
            <td>
                <%= Html.Encode(item.UpdateBy) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.UpdateOn)) %>
            </td>--%>
        </tr>
        <% } %>
    </table></div>
    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>
</asp:Content>
